package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 消息通知(MessageNotification)表实体类
 *
 * @author yxy
 * @since 2024-10-29 14:45:43
 */
@Data
@ApiModel("消息通知")
@TableName(value = "tb_message_notification")
public class MessageNotification extends Model<MessageNotification> implements Serializable {
    private static final long serialVersionUID = 667273328596059006L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("消息类型")
    private Integer type;

    @ApiModelProperty("状态0已读 1未读")
    private Integer status;

    @ApiModelProperty("消息名称")
    private String name;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("发送者")
    private Long sendUser;

    @ApiModelProperty("接收者")
    private Long acceptor;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间-接收时间")
    private Date createTime;
}
